package com.charlotte.study.gupao.vistor.kpi;

/**
 * Created by Tom.
 */
public class CEOVistitor implements IVisitor {
    @Override
    public void visit(Engineer engineer) {
        System.out.println("工程师" +  engineer.getName() + "，KIP：" + engineer.getKpi());
    }

    @Override
    public void visit(Manager manager) {
        System.out.println("经理：" +  manager.getName() + ",KPI:" + manager.getKpi() + "，产品数量：" + manager.getProducts());
    }
}
